package com.zj.classwork;
public class ClassWork17 {
    public static void main(String[] args) {
        for(int i=1;i<=999;i++) {
            int ge=i%10;
            int ten=i/10%10;
            int hunderd=i/100;
            if(ge*ge*ge+ten*ten*ten+hunderd*hunderd*hunderd==i)
            {
                System.out.println(i);
            }
        }
    }
}
